package com.example.warehousewms.mapper;

import com.example.warehousewms.bean.StockOutOrder;
import com.example.warehousewms.bean.StockOutOrderItem;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface StockOutOrderItemMapper {

    int insertStockOutOrderItem(StockOutOrderItem stockOutOrderItem);

    int insertStockOutOrderItemList(List<StockOutOrderItem> stockOutOrderItemList);

    int updateStockOutOrderItem(StockOutOrderItem stockOutOrderItem);

    int updateStockOutOrderItemList(List<StockOutOrderItem> stockOutOrderItemList);

    int deleteStockOutOrderItem(Long id);

    StockOutOrderItem getStockOutOrderItemById(Long id);

    List<StockOutOrderItem> getAll();

    List<StockOutOrderItem> getStockOutItemByStockOutId(Long stockOutOrderId);
}
